import request from '@/utils/request';

export async function addAndUpdate(params: any) {
  return request(`/users/save/${params.id}`, {
    method: 'post',
    data:params,
  });
}

export async function fetchDetail(params: any) {
  return request(`/users/detail/${params.id}`, {
    params,
  });
}
